home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / comm / tcp / NAT10.lha / NAT10 / src / nat10amiga_gg.patch < prev   
Text File  |  1999-01-31  |  2KB  |  52 lines

  1. diff -up nat10.orig/Makefile nat10/Makefile
  2. --- nat10.orig/Makefile    Mon Feb 17 03:18:04 1997
  3. +++ nat10/Makefile    Sun Jan 31 17:17:14 1999
  4. @@ -357,6 +357,11 @@ GUESTACCOUNT = nobody
  5.  # FLAGSM = -D_WIN32
  6.  # LIBSM =
  7.  
  8. +# This is for Amiga Geek Gadgets
  9. +# Contributed by Nickolay O. Zabrodotsky (F0lken)
  10. +# Very alpha version but seems to be working
  11. +# FLAGSM = -DAMIGA_GG -DNETGROUP
  12. +# LIBSM = 
  13.  
  14.  ######################################################################
  15.  # DON'T EDIT BELOW THIS LINE
  16. diff -up nat10.orig/includes.h nat10/includes.h
  17. --- nat10.orig/includes.h    Mon Feb 17 03:18:04 1997
  18. +++ nat10/includes.h    Tue Jan 26 22:22:22 1999
  19. @@ -842,6 +842,32 @@ typedef int mode_t;
  20.  #endif
  21.  
  22.  
  23. +#ifdef AMIGA_GG
  24. +#define RECORD_LOCKING_NOT_IMPLEMENTED 0
  25. +#include <string.h>
  26. +#include <sys/dir.h>
  27. +#include <dirent.h>
  28. +#include <sys/filio.h>
  29. +#include <fcntl.h>
  30. +#include <sys/sockio.h>
  31. +#include <netinet/tcp.h>
  32. +#include <termios.h>
  33. +#define SYSV
  34. +#define USE_WAITPID
  35. +#define SIGNAL_CAST (void (*)(int))
  36. +#define USE_STATVFS
  37. +#define USE_GETCWD
  38. +
  39. +/*Some constants from FCNTL.H */
  40. +#define    F_GETLK        7        /* get record locking information */
  41. +#define    F_SETLK        8        /* set record locking information */
  42. +#define    F_SETLKW    9        /* F_SETLK; wait if blocked */
  43. +#define    F_RDLCK        1        /* shared or read lock */
  44. +#define    F_UNLCK        2        /* unlock */
  45. +#define    F_WRLCK        3        /* exclusive or write lock */
  46. +#endif
  47. +
  48.  /*******************************************************************
  49.  end of the platform specific sections
  50.  ********************************************************************/
  51.